package org.gd.hellojaxb.privat24.dbpool;

import org.gd.hellojaxb.privat24.dbpool.resin.Database;

import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement(name = "server")
@XmlAccessorType(XmlAccessType.FIELD)
public class ResinDBPool extends DBPool {

    @XmlElement(name = "database")
    private List<Database> databases;

    public ResinDBPool() {
        databases = new ArrayList<Database>();
    }

    public List<Database> getDatabases() {
        return databases;
    }

    public ResinDBPool setDatabases(List<Database> databases) {
        this.databases = databases;
        return this;
    }
}
